#-------------------------------------------------
#
# Project created by QtCreator 2016-11-23T09:24:16
#
#-------------------------------------------------

#DEFINES += BUILD_ARM
DEFINES += BUILD_X86_LINUX
#DEFINES += BUILD_X86_WINDOWS
#决定匹配“华途”还是“朗宇芯”
#DEFINES += D_USE_HUATU
DEFINES += D_LANGYUXIN_V2
QT       += sql
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TRANSLATIONS += deviceEnglishLan.ts

TARGET = DeviceDriver
TEMPLATE = lib

DEFINES += DEVICEDRIVER_LIBRARY

SOURCES += devicedriver.cpp \
    deviceButton/threadencoder.cpp

HEADERS += devicedriver.h\
        devicedriver_global.h \
    deviceButton/threadencoder.h

greaterThan(QT_MAJOR_VERSION, 4.9){
message("qt greater Than  4.9  ")
}else{
message("virtual keyboard ")
SOURCES +=    keyboard.cpp \
    ipmethod.cpp

HEADERS += ipmethod.h \
    keyboard.h

FORMS +=  keyboard.ui
RESOURCES += loadFile/keyboard.qrc
}

contains( DEFINES, D_USE_HUATU ){
message("project use D_USE_HUATU !")

HEADERS += deviceButton/threaddev.h \
    deviceButton/devnamespace.h

SOURCES +=deviceButton/threaddev.cpp

}
else
{
HEADERS += deviceButton/threaddevlang.h \
    deviceButton/devnamespacelang.h

SOURCES +=deviceButton/threaddevlang.cpp

}

INCLUDEPATH += ../../include/MacroDefine
INCLUDEPATH += ../ChinesevirtualKeyBoard

contains( DEFINES, BUILD_X86_WINDOWS ){
message("project use BUILD_X86_WINDOWS !")
DESTDIR = ../../lib/x86_WINDOWS
}

contains( DEFINES, BUILD_X86_LINUX ){
message("project use BUILD_X86_LINUX !")
DESTDIR = ../../lib/x86
INCLUDEPATH += ../CommunicateDelegate
INCLUDEPATH += ../InputMethodDll
#编译目录
UI_DIR += ../../build/tmphmi/x86_linux
MOC_DIR += ../../build/tmphmi/x86_linux
OBJECTS_DIR += ../../build/tmphmi/x86_linux
RCC_DIR  += ../../build/tmphmi/x86_linux
}

contains( DEFINES, BUILD_ARM ){
message("project use BUILD_ARM !")
DESTDIR = ../../lib/arm

INCLUDEPATH += ../CommunicateDelegate
INCLUDEPATH += ../InputMethodDll

#编译目录
UI_DIR += ../../build/tmphmi_arm
MOC_DIR += ../../build/tmphmi_arm
OBJECTS_DIR += ../../build/tmphmi_arm
RCC_DIR  += ../../build/tmphmi_arm
}



